#ifndef __USART1_PROCESS_H
#define __USART1_PROCESS_H
#include "hardware_recv_send.h"
#include "stdlib.h"
#include "stdint.h"


#define DATA_IS_NULL  0
#define DATA_WAIT_READ 1
#define DATA_RECVING  2

void set_pack_head(uint8_t head);
void set_pack_tail(uint8_t tail);

uint16_t usart1_process(uint8_t *data_buf, uint16_t len);

void usart2_process(void);


uint8_t usart1_available(void);
uint8_t usart1_read_able(void);


uint8_t usart2_available(void);

void usart1_flush(void);

#endif




